package com.offer;

/**
 * @Author: huangzhigao
 * @Date: 2023/3/4 16:38
 */
public class offer11 {
    public int minArray(int[] numbers) {
        int pre = numbers[0];
        for (int i = 1; i < numbers.length; i++) {
            if (numbers[i] < pre) {
                return numbers[i];
            }
            pre = numbers[i];
        }
        return numbers[0];
    }
}
